home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / Form / Sources / PartInfo.fr < prev    next >
Encoding:
Text File  |  1996-09-17  |  2.5 KB  |  119 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                PartInfo.fr
  4. //    Release Version:    $ ODF 2 $
  5. //
  6. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef FWRESFIL_K
  11. #include "FWResFil.k"
  12. #endif
  13.  
  14. #ifndef FWPART_FR
  15. #include "FWPart.fr"
  16. #endif
  17.  
  18. #ifndef DEFINES_K
  19. #include "Defines.k"
  20. #endif
  21.  
  22. #ifndef BINDING_K
  23. #include "Binding.k"
  24. #endif
  25.  
  26. #ifndef SLGCONST_K
  27. #include "SLGConst.k" 
  28. #endif
  29.  
  30. #ifndef FWWINDOW_K
  31. #include "FWWindow.k"
  32. #endif
  33.  
  34. #ifndef FWVIEWS_FR
  35. #include "FWViews.fr"
  36. #endif
  37.  
  38. //----------------------------------------------------------------------------------------
  39. //    PartInfo Resource
  40. //----------------------------------------------------------------------------------------
  41.  
  42. resource FW_RPartInfo(kPartInfoID)
  43. {
  44.     // ----- Icon ID
  45.     kViewAsIconID,
  46.     
  47.     // ----- MenuBar ID
  48.     kMenuBar,
  49.     
  50.     // ----- Document Window ID
  51.     kDocumentWindowID,
  52.     
  53.     // ----- Part Name
  54.     kODFFormEditorUserString,
  55.     
  56.     // ----- PartKind
  57.     kODFFormKind
  58. };
  59.  
  60. //----------------------------------------------------------------------------------------
  61. //    Document Window Resource
  62. //----------------------------------------------------------------------------------------
  63.  
  64. resource FW_RDocumentWindow(kDocumentWindowID)
  65. {
  66.     // ----- Size
  67.     {FW_FIX(521), FW_FIX(806)},
  68.     
  69.     // ----- Position
  70.     {FW_FIX(0), FW_FIX(0)},        // (0,0) means default position
  71.     
  72.     // ----- Style
  73.     FW_kDocumentWindow,
  74.  
  75.     // ----- Presentation
  76.     kMainPresentation
  77. };
  78.  
  79. //----------------------------------------------------------------------------------------
  80. //    About Resource
  81. //----------------------------------------------------------------------------------------
  82.  
  83. resource FW_RAbout(kAbout)
  84. {
  85.     // ----- Icon ID
  86.     kAboutIconID,
  87.     // ----- Part Name
  88.     FW_RStyledText
  89.     (
  90.         FW_FIX(18), 
  91.         FW_kBold, 
  92.         "times", 
  93.         "ODFForm"
  94.     ),
  95.     // ----- Version Number
  96.     FW_RStyledText
  97.     (
  98.         FW_FIX(9),
  99.         FW_kPlain,
  100.         "geneva",
  101.         "ODF Release 2"
  102.     ),
  103.     // ----- Credits
  104.     FW_RStyledText
  105.     (
  106.         FW_FIX(9),
  107.         FW_kPlain,
  108.         "geneva",
  109.         "ODFForm demonstrates the ODF View System. It shows how to use various Views, "
  110.         "Controls, and Dialog classes, and how to respond to their notifications."
  111.         "It contains an example of a scrolling edit-field with Undo/Redo support. "
  112.         "It also demonstrates how ODF supports MacApp and PowerPlant views.\r\r"
  113.         "Written by the ODF Team.\r"
  114.     ),
  115.     // ----- ButtonString
  116.     "OK",
  117.     // ----- ButtonSize
  118.     {FW_FIX(80), FW_FIX(30)}
  119. };